﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class FuncNavTownBtn : MonoBehaviour
    {
        public GameObject redPoint;

        void Update()
        {
            if (!redPoint.activeSelf && StaticData.funcNavKit.IsFuncNavHaveTip())
            {
                redPoint.SetActive(true);
            }
            else if (redPoint.activeSelf && !StaticData.funcNavKit.IsFuncNavHaveTip())
            {
                redPoint.SetActive(false);
            }
        }
    }
}